package com.lr.wfxmanager.permission.service;
import com.lr.wfxmanager.permission.bean.ParentFunctree;
import com.lr.wfxmanager.permission.bean.RoleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserService {
    //*查询指定用户的权限树*//*
    List<ParentFunctree> queryFunctree(@Param("account") String account);
    //*查询显示角色的权限树*//*
    List<ParentFunctree> queryRolePermission(String roleCode);
    //*取消指定角色权限id的权限*//*
    void cancelRoleGrant(@Param("fid")Integer fid) throws Exception;
    //*添加指定角色权限*//*
    void addRoleGrant(@Param("moduleCode")String moduleCode,@Param("roleCode")String roleCode) throws Exception;
  //*取消指定角色父节点(包括子节点权限)*//*
    void cancelRoleGrants(@Param("moduleCode")String moduleCode, @Param("roleCode")String roleCode) throws Exception;
    //*给父节点添加所有子节点权限*//*
    void addRoleGrants(String moduleCode,String roleCode) throws Exception;
    //*查询所有角色*//*
    List<RoleInfo> queryAllRoleInfo();
}
